package test3_25.demo04;

public class Homework13_10_Split {
    public static void main(String[] args) {
        String s = "张三丰-19-男-哈尔滨市南岗区东方新天地";
        String[] arr = s.split("-");

        System.out.println("姓名:" + arr[0]);
        System.out.println("年龄:" + arr[1]);
        System.out.println("性别:" + arr[2]);
        System.out.println("地址:" + arr[3]);
    }
}
